﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_DeleteBangdingRole_V2]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_DeleteBangdingRole_V2];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_DeleteBangdingRole_V2]
    @FlowID int,
    @StepID int,
    @RoleID int
AS
BEGIN
SET NOCOUNT ON;

DELETE FROM dbo.UDS_Flow_Member_Bind 
    WHERE
        Flow_ID = @FlowID 
        and Step_ID = @StepID 
        and Obj_ID = @RoleID 
        and Obj_Type = /* role */ 3;

END
GO